import { _decorator, Component, Node } from 'cc';
import { ControllerBase } from '../../../JJYYCore/MVC/Controller/ControllerBase';
const { ccclass, property } = _decorator;

@ccclass('GamePageController')
export class GamePageController extends ControllerBase {
    protected setControllerElement(): void {
        const button = this.BtnDicInstance.get("Hello");
        button.node.on(Node.EventType.TOUCH_START, () => {
                console.log('Hello World');
        });
    }

    public getID(): string {
        return "GamePageController"
    }
}